package ua.edu.sumdu.j2se.roman.lab1;

import org.junit.Test;
import ua.edu.sumdu.j2se.roman.lab1.domain.Task;
import ua.edu.sumdu.j2se.roman.lab1.view.ReminderView;
import ua.edu.sumdu.j2se.roman.lab1.view.swing.SwingReminderView;

import java.util.Date;

public class ReminderViewTest {
//    @Test
//    public void testShowConsoleView() {
//        ReminderView reminderView = new ConsoleReminderView(new Scanner("    cLoSe postpone"));
//        reminderView.show(new Task("Task1",new Date()));
//    }

    @Test
    public void testShowSwingView() throws InterruptedException {
        ReminderView reminderView = new SwingReminderView();
        reminderView.show(new Task("Task1",new Date()));
        Thread.sleep(5000L);
    }

}
